package com.qf.petmall.starter.login.service;

import com.qf.petmall.starter.login.entity.Users;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qf.petmall.starter.utils.R;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

/**
 * <p>
 * 用户  服务类
 * </p>
 *
 * @author author
 * @since 2022-12-05
 */
public interface IUsersService extends IService<Users> {

    boolean  regist(Users user);

    /**
     *
     * @param userImg 上传的图片
     * @param  用户名
     * @return R
     * 图片上传到项目根目录下的imgs文件夹下
     * @throws IOException
     */
    R upload(MultipartFile userImg,Integer userId) throws IOException;

}
